Skip to content

Add tests for basic.scope - #623

Merged
nunoplopes merged 14 commits into
Cpp2Rust:masterfrom
lucic71:basic.scope
Nov 16, 2026
Merged

nunoplopes merged 14 commits into
Cpp2Rust:masterfrom
lucic71:basic.scope

Conversation

@lucic71

@lucic71 lucic71 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

#619

I also fixed some converter bugs:

  • p2.2-nested-iteration-statement-redeclares-loop-variable.cpp - loop variable shadowed existing variable
  • p1.1-condition-variable-visible-in-else.cpp - condition variable in if/switch/for/while not transalted
  • p2.10-block-scope-extern-names-namespace-variable.cpp - block-scope extern variable translated as local variable
  • p4.3.2-equivalent-template-redeclares-function-template.cpp - duplicated translated code between template function declaration and definition
  • p3.2-explicit-object-and-rvalue-members-are-distinct.cpp - explicit member function ( this Self &self)
  • p2.13-anonymous-union-members-in-parent-scope.cpp - namespace-scope anonymous union/struct not converted

The following is related to #248 and can't be fixed now:

  • p7.5-default-member-initializer-names-later-member.cpp - default initialiser of member uses implicit this

@nunoplopes
nunoplopes merged commit 1dba2d4 into Cpp2Rust:master Nov 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants